﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace App.Core.Result
{
    public enum ResultCode
    {
        /// <summary>
        /// 数据错误
        /// </summary>
        [Description("数据错误")]
        DataError,
        /// <summary>
        /// 操作成功
        /// </summary>
        [Description("操作成功")]
        Success = 200,

        /// <summary>
        /// 未授权
        /// </summary>
        [Description("未经授权")]
        Unauthorized = 401,
        /// <summary>
        /// 无权访问
        /// </summary>
        [Description("无权访问")]
        Forbidden = 403,
        /// <summary>
        /// 系统异常
        /// </summary>
        [Description("服务端错误")]
        Error = 500
    }
}
